/*
Arm Tracker and Glove Demo by Noah Zerkin (noazark AT gmail.com) 2009
Released under GNU GPLv3.0 http://www.opensource.org/licenses/gpl-3.0.html
*/

void hushNav(){
  joyX = 15;
  joyY = 0;

    joyY = int(glovePitch[0] * 100);
    joyX = int(gloveRoll[0] * 100);
      if(thumb[0][2] < 20){
 //  buttonC = true; 
           if (abs(joyY) <= 10){
        zoom += -.2*((float)joyY);
      }
  }
//  }
//  else{
//    joyY = 0;
  //  joyX = 0;
//  }
//println("HUSH!");
println(thumb[0][2]);
}
/*
void vJoystick(int s){
  int thumbPos = 0;
  joyX = 0; 
  joyY = 0;
  if 

  switch(thumbPos){
  case 0:
    break;

  case 1:
    joyY = -30;
    break;

  case 2:
    joyY = 30;
    break;

  case 5:
    joyX = 30;
    break;

  case 6:
    joyX = 30; 
    joyY = -30;
    break;

  case 7:
    joyX = 30; 
    joyY = 30;
    break;

  case 9:
    joyX = -30;
    break;

  case 10:
    joyX = -30; 
    joyY = -30;
    break;

  case 11:
    joyX = -30; 
    joyY = 30;
    break;
  default:
    break;
  }
  if(gloveY[s] >= 510){
    zoom -= 3;
  }
  if(gloveY[s] <= 480){
    zoom += 3;
  }
}
*/
